document.addEventListener('DOMContentLoaded', function() {
    const modal = document.getElementById('modal');
    const openModalButton = document.getElementById('openModalButton');
    const closeModalButton = document.getElementById('closeModalButton');
    const goToPageButton = document.getElementById('goToPageButton');

    openModalButton.addEventListener('click', function() {
        modal.style.display = 'block';
    });

    goToPageButton.addEventListener('click', function() {
        window.location.href = '总榜.html'; 
    });
});